package com.xgg.taiwuinfo.gongfa.abilities;

import android.content.Context;

public class Ability_Cuipo_Damage {
    final public Double Dmg;
    final public int Poti;
    final public int Poqi;
    final public Double Range;
    final public int Dianxue;
    final public int Pozhan;

    public Ability_Cuipo_Damage(double dmg , int poti , int poqi , double range , int dianxue, int pozhan)
    {
        Dmg = dmg;
        Poti = poti;
        Poqi = poqi;
        Range = range;
        Dianxue = dianxue;
        Pozhan = pozhan;
    }

    public String getDmgString(Context ctx)
    {
        StringBuilder bd = new StringBuilder();
        bd.append(String.format("攻击范围: %.01f\r\n基础伤害: %.01f\r\n破体: %d \r\n破气: %d\r\n" , Range , Dmg , Poti , Poqi));
        if (Pozhan > 0 )
        {
            bd.append(String.format("至少发挥[%d]成威力时使敌人出现破绽\r\n" , Pozhan));
        }
        if (Dianxue > 0 )
        {
            bd.append(String.format("至少发挥[%d]成威力时封闭敌人的穴道\r\n" , Dianxue));
        }
        return bd.toString();
    }
}
